#include <stdio.h>
#include <stdlib.h>

struct time_struct
{
    unsigned char hour;
    unsigned char minute;
    unsigned char second;
};

void show_time(struct time_struct * ptime)
{
    if(ptime->hour < 10)putchar('0');
    printf("%d:",ptime->hour);
    if(ptime->minute < 10)putchar('0');
    printf("%d:",ptime->minute);
    if(ptime->second < 10)putchar('0');
    printf("%d\n",ptime->second);
}

void input_time(struct time_struct * ptime)
{
    int hour_tem, minute_tem, second_tem;
    scanf("%d:%d:%d", &hour_tem, &minute_tem, &second_tem);
    ptime->hour = hour_tem;
    ptime->minute = minute_tem;
    ptime->second = second_tem;
}

int main()
{
    struct time_struct time = {};
    input_time(&time);
    show_time(&time);
    return 0;
}